import request from '@/request'

export function getCountofStudentNotInSchoolByDay1(day) {
  return request({
    url: '',
    method: 'post',
    data: {

    }
  })

}
export function getAllStudentInSchool(day) {
  return request({
    url: `admin/history/segmentation/safe/${day}/false`,
    method: 'get'
  })
}
export function getCountofStudentNotInSchoolByDay(start, end, option) {
  return request({
    url: `/admin/history/segmentation/${start}/${end}/${option}`,
    method: 'get'
  })
}


export function getSegmentationList(day, option) {
  return request({
    url: `/admin/history/segmentationList/${day}/${day + 23}/${option}`,
    method: 'get'
  })
}

export function getStudentInSchoolByGrade(grade, date, option) {
  return request({
    url: `admin/history/grade/${grade}/${date}/${option}`,
    method: 'get'
  })
}
// Math.round(new Date() / 1000)
// http: //172.28.14.30:9454/admin/history/grade


// 接口：按年级查询异常学生
// 地址：http://172.28.14.30:9454/admin/history/grade/{{target}}/{{date}}/{{option}}


// 接口： 按学院查询
// 地址： http: //172.28.14.30:9454/admin/history/college/{target}/{date}/{option}